<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1" width="50%" cellspacing="0">
    <thead>
    <tr>
        <th>班级名称</th>
        <th>开班时间</th>
        <th>带班老师</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="l:${class.list}">
        <td th:text="${l.name}"></td>
        <td th:text="${l.time}"></td>
        <td th:text="${l.teacher}"></td>
        <td>
            <a th:href="@{/class/del(id=${l.id})}">删除</a>
            <a th:href="@{/class/toUpdate(id=${l.id})}">修改</a>
        </td>
    </tr>
    </tbody>
</table>
<a style="margin-left: 20px" th:each="p : ${#numbers.sequence(1,class.pages)}" th:text="${p}" th:href="@{/class/findAll(pageNo=${p})}"></a>
<a href="/html/class/add.html">添加班级</a>
</body>
</html>